home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Apps / Graphics / Viewers / GIFology / GifDecode.h < prev    next >
Text File  |  1992-12-25  |  3KB  |  70 lines

  1. /*
  2.  
  3.      File: GifDecode.h
  4.  
  5.      Release: 1.0
  6.  
  7.      Written by: Georges CHAN
  8.  
  9.      Purpose: declare GifDecode class.
  10.  
  11.      Copyright, All right reserved.
  12.  
  13.      Feel free to use this application.
  14.  
  15.      Date: July 92
  16.  
  17.      Note: The author disclaims all warranties with regard to this
  18.            software, including all implied warranties or merchantability,
  19.            in no event shall the author be liable for any special,
  20.            indirect or consequential damages or any damages whatsoever
  21.            resulting from loss of use, data or profits, whether in an
  22.            action of contract, negligence or other tortuous action,
  23.            arising out of or in connection with the use of this software.
  24.  
  25.            GIF is the copyright property of CompuServe Inc.,
  26.            GIF (sm) is a service mark property of CompuServe Inc.
  27.  
  28.  
  29. */
  30.  
  31. #import <objc/Object.h>
  32. #import <appkit/graphics.h>      // lib for graphics constant type, e.g. NXRect
  33.  
  34. @interface GifDecode:Object
  35. {
  36.     unsigned char gMap[256][3],  // hold RGB color for global color map
  37.                   lMap[256][3],  // hold RGB color for local color map
  38.                   shade[4096],   // hold color index in decoding table
  39.                   stack[4096];   // hold colors to stack up for output
  40.     int child[4096],             // hold child of each entry in decoding table
  41.         backIndex,               // index of background color
  42.         left,                    // number of bits left in buffer
  43.         safe,                    // value of the bits left in buffer
  44.         nvc,                     // next valid code (i.e. next index to fill an entry in table)
  45.         oldCode,                 // last code processed in decoding process
  46.         color,                   // last color decoded in decoding process
  47.         cSize,                   // number of bits to deal when starting decoding
  48.         stackIndex,              // number of entries pushed in stack
  49.         useGMap,                 // use global color map flag
  50.         gEntry,                  // number of entries in global color map
  51.         lEntry,                  // number of entries in local color map
  52.         oldVer;                  // flag for old version (GIF 87a); set to zero for GIF 89a
  53. }
  54.  
  55. - initFromFile :(const char *) filename
  56.        bitList :(id *) mapList
  57.         maxiNo :(int) maxi
  58.      noOfFrame :(int *) noImage
  59.        winSize :(NXSize *) screenSize
  60.     useOrCoord :(int) useOr;
  61.  
  62. - initFromFile :(const char *) filename
  63.      imageList :(id *) imList
  64.         maxiNo :(int) maxi
  65.      noOfFrame :(int *) noImage
  66.        winSize :(NXSize *) screenSize
  67.     useOrCoord :(int) useOr;
  68.  
  69. @end
  70.